<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
        $ajaxContext = $this->_helper->getHelper('AjaxContext');
      $ajaxContext->addActionContext('list','html')
               ->initContext();
    }

    public function indexAction()
    {
        $this->view->assign('title','hello word');
        $this->view->assign('welcome','welcome to my site,this site is built by zend framework,enjoy it');
        $this->view->assign('webmaster','Kid');
    }
    public function listAction() 
    {
    // pretend this is a sophisticated database query
            $data = array('red','green','blue','yellow');
            $this->view->data = $data;
    }

}

